/*    */ package tools.packet;
/*    */ 
/*    */ import client.MapleCharacter;
/*    */ import handling.opcode.SendPacketOpcode;
/*    */ import java.util.ArrayList;
/*    */ import java.util.List;
/*    */ import server.maps.MapleBlueSkySword;
/*    */ import tools.data.output.MaplePacketLittleEndianWriter;
/*    */ 
/*    */ 
/*    */ 
/*    */ public class MapleBlueSkySwordPacket
/*    */ {
/*    */   public static byte[] SpawnBlueSkySword(int CID, List<MapleBlueSkySword> BlueSkySword, int background) {
/* 15 */     return SpawnBlueSkySword(CID, BlueSkySword, 0, new ArrayList<>(), background);
/*    */   }
/*    */   
/*    */   public static byte[] SpawnBlueSkySword(int CID, List<MapleBlueSkySword> BlueSkySword, int unks, List<Integer> unksize, int background) {
/* 19 */     MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
/*    */     
/* 21 */     mplew.writeShort(SendPacketOpcode.SPAWN_SKY_SWORD.getValue());
/* 22 */     mplew.writeInt(CID);
/* 23 */     mplew.writeInt(BlueSkySword.size());
/* 24 */     for (MapleBlueSkySword Sword : BlueSkySword) {
/* 25 */       mplew.writeInt(Sword.getOid());
/* 26 */       mplew.writeInt(Sword.getIndex());
/* 27 */       mplew.writeInt(0);
/* 28 */       mplew.writeInt(Sword.getOwner().getId());
/* 29 */       mplew.writeInt(Sword.getMoboid());
/* 30 */       mplew.writeInt(Sword.getWidth());
/* 31 */       mplew.writeInt(Sword.getHeight());
/* 32 */       mplew.writeInt(Sword.getAngle());
/* 33 */       mplew.writeInt(Sword.getSkillId());
/* 34 */       mplew.writeInt(0);
/* 35 */       mplew.writeInt(Sword.getDuration());
/* 36 */       mplew.writeInt(Sword.getUnks());
/* 37 */       mplew.writeInt(Sword.getAttack());
/* 38 */       mplew.writePosAsInt(Sword.getPos());
/* 39 */       mplew.writeShort(0);
/* 40 */       mplew.writeInt(Sword.getUnksize().size());
/* 41 */       for (Integer s : Sword.getUnksize()) {
/* 42 */         mplew.writeInt(s.intValue());
/*    */       }
/*    */     } 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */     
/* 54 */     mplew.writeInt(background);
/*    */     
/* 56 */     return mplew.getPacket();
/*    */   }
/*    */   
/*    */   public static byte[] CancelBlueSkySword(MapleCharacter player, int value) {
/* 60 */     MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
/* 61 */     mplew.writeShort(SendPacketOpcode.CANCEL_SKY_SWORD.getValue());
/* 62 */     mplew.writeInt(player.getId());
/* 63 */     mplew.writeInt(1);
/* 64 */     mplew.writeInt(value);
/* 65 */     mplew.writeInt(0);
/* 66 */     return mplew.getPacket();
/*    */   }
/*    */ 
/*    */   
/*    */   public static byte[] PassiveBlueSkySwordSkillEffect(MapleCharacter player, int value, int group) {
/* 71 */     MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
/* 72 */     mplew.writeShort(SendPacketOpcode.PASSIVE_SKY_SWORD_Effect.getValue());
/* 73 */     mplew.writeInt(player.getId());
/* 74 */     mplew.writeInt(value);
/* 75 */     mplew.writeInt(group);
/* 76 */     return mplew.getPacket();
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\tools\packet\MapleBlueSkySwordPacket.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */